<style>
<%
var fontSize = (width - interval*4)/5;
%>
.<%=cls%>{
  width: <%=width+interval%><%=unit%>;
  height: <%=height%><%=unit%>;
  display: inline-block;
  *display:inline;
  *zoom:1;
  margin-right:-<%=interval%><%=unit%>;
  <%if(editable){%>
  cursor:pointer;
  <%}%>
}

.<%=cls%> .star{
  font-size: <%=fontSize%><%=unit%>;
  margin-right:<%=interval%><%=unit%>;
}
</style>

<div class="stars <%=cls%>">
  <%for(var i = 0; i < 5; ++i){%>
  <%  if(i < star){%>
  <span class="star">&#xe600;</span>
  <%}else{%>
  <span class="star">&#xe601;</span>
  <%}%>
  <%}%>
</div>
